﻿using System;
namespace Bit.Art.Api.Models
{
	/// <summary>
    /// Sso 服务器相关的配置信息
    /// </summary>
    public class SsoOption
    {
        /// <summary>
        /// 服务器地址
        /// </summary>
        public string ServerUrl { get; set; }

        /// <summary>
        /// 用来代替partner获取用户的access token的id
        /// </summary>
        public string SsoClientId { get; set; }

        /// <summary>
        /// 用来代替partner获取用户的access token的secret
        /// </summary>
        public string SsoClientSecret { get; set; }
    }

    /// <summary>
    /// appsettings.*.json配置文件的json对象
    /// </summary>
    public class ServerOptions
    {
        /// <summary>
        /// swagger直接访问sso的clientid
        /// </summary>
        public string swagger_sso_client_id { get; set; }

        /// <summary>
        /// redis的服务器地址，默认是："localhost"
        /// </summary>
        public string redis { get; set; } = "localhost";

        /// <summary>
        /// api服务器启动的绑定地址
        /// </summary>
        public string urls { get; set; }

        /// <summary>
        /// 登录单点登录服务器相关的配置
        /// </summary>
        public SsoOption SsoOption { get; set; }
    }
}
